<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<script type="text/javascript" src="<?php echo ApplicationConfig::app()->params['base']['jsUrl']?>jquery.js"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php // echo Yii::app()->theme->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->
	<link type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/menu.css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/screen1.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
<body>
<!-- header -->
    <div id="page-top-outer">
      <!-- Start: page-top -->
      <div id="page-top">
        <!-- start logo -->
        <div id="logo">
                   <!-- <a href=""><img src="<?php //echo Yii::app()->theme->baseUrl; ?>/images/shared/airtel_logo.jpg" width="156" height="90"  alt="" /></a>-->
          <?php // echo CHtml::link(CHtml::encode(Yii::app()->name), array('/site/index.php')); ?></div>
        <!-- end logo -->
        <div class="welcome"><?php if(isset(Yii::app()->session['first_name'])){echo "Welcome";}?>&nbsp; <strong><?php echo Yii::app()->session['first_name'] .' '. Yii::app()->session['last_name'] ; // include ('search.php'); ?></strong></div>
          <!--  end top-search -->
          <div class="clear">&nbsp;</div>
        </div>
        <!-- End: page-top -->
      </div>
      <!-- End: page-top-outer -->
      <div class="clear">&nbsp;</div>
      <div class="nav-outer-repeat">
        <!--  start nav-outer -->
        <div class="nav-outer">
          <!-- start nav-right -->
          <div id="nav-right">
            <div class="nav-divider">&nbsp;</div>
            <div class="showhide-account" style="width:116px">&nbsp;<!--<img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/shared/nav/nav_myaccount.gif" width="116" height="26" alt="" />--></div>
            <div class="nav-divider">&nbsp;</div>
            <a href="<?php echo Yii::app()->baseUrl; ?>/index.php/site/login" id="logout">           
              <img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/shared/nav/nav_login.gif" width="84" height="26" alt="" />             
            </a>
            <div class="clear">&nbsp;</div>
            <!--  start account-content -->
            <div class="account-content">
              <div class="account-drop-inner"> <?php echo CHtml::link("Settings", array('user/update/' . Yii::app()->user->id), array('id' => 'acc-settings')); ?>
                <div class="clear">&nbsp;</div>
                <div class="acc-line">&nbsp;</div>
              <?php echo  CHtml::link("Personal details", array('user/view/' . Yii::app()->user->id), array('id' => 'acc-details')); ?>
              
            </div>
          </div>
          <!--  end account-content -->
        </div>
        <!-- end nav-right -->
        <!--  start nav -->
        <div class="nav">
          <div id="menu">
          <?php		  
		 // echo '<pre>' ;
		 // print_r( Yii::app()->session['user_type'] ) ;		  
		  ?> 

		<div id="mainmenu">
			<?php $this->widget('zii.widgets.CMenu',array(
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/site/index')),array('label'=>'SEARCH', 'url'=>array('/jobSearch/index')),
				array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
				array('label'=>'POLLS', 'url'=>array('Polldisplay/pollDisplay'),'visible'=>!empty(Yii::app()->session['user_name'])),
				array('label'=>'competition', 'url'=>array('Competationdisplay/competationDisplay'), 'visible'=>!empty(Yii::app()->session['user_name'])),
				array('label'=>'SURVEY','url'=>array('Surveyanswer/surveyDisplay'), 'visible'=>!empty(Yii::app()->session['user_name'])),
				array('label'=>'Subscription', 'url'=>array('/site/subscription'), 'visible'=>empty(Yii::app()->session['user_name'])),
				array('label'=>'Sign Up', 'url'=>array('/user_register/user/create'), 'visible'=>empty(Yii::app()->session['user_name'])),
				array('label'=>'Job Register', 'url'=>array('/user_register/secondRegister/create'), 'visible'=>!empty(Yii::app()->session['user_name'])),
				array('label'=>'My Offer', 'url'=>array('/myOffer/recommendedJob'), 'visible'=>!empty(Yii::app()->session['user_name'])),
				array('label'=>'YX Register', 'url'=>array('/user_register/user/yxRegister'), 'visible'=>!empty(Yii::app()->session['user_name'])),
				array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>empty(Yii::app()->session['user_name'])),
				array('label'=>'Logout ('.ApplicationSessions::run()->read('user_name').')', 'url'=>array('/site/logout'), 'visible'=>!empty(Yii::app()->session['user_name']))
				),
			)); ?>
		</div>
              <!-- <ul class="menu">
                <li><?php //echo CHtml::link("<span>Home</span>", array('/site/index')); ?></li>
               
                <li><?php //echo CHtml::link("<span>Video</span>", array('episode/create')); ?>
				 			
				</li> -->
				
               <!-- <li><?php //echo CHtml::link("<span>Jobs</span>", array('/site/index')); ?></li>	
                <li><?php //echo CHtml::link("<span>Offers</span>", array('/site/index')); ?></li>
                <li><?php //echo CHtml::link("<span>Subscription</span>", array('/site/subscription'), array('visible'=>Yii::app()->user->isGuest)); ?></li>
                <li><?php //echo CHtml::link("<span>Sign Up</span>", array('/user_register/user/create'), array('visible'=>Yii::app()->user->isGuest)); ?></li>
                <li><?php //echo CHtml::link("<span>YX Register</span>", array('/user_register/secondRegister/create'), array('visible'=>!Yii::app()->user->isGuest)); ?></li>
				<li><?php //echo CHtml::link("<span>Login</span>", array('/site/login'), array('visible'=>Yii::app()->user->isGuest)); ?></li>
                <li><?php //echo CHtml::link("<span>Logout(".Yii::app()->user->name.")</span>", array('/site/logout'), array('visible'=>!Yii::app()->user->isGuest)); ?></li> -->
                <!-- <div class="columns two">
                    <ul class="one">
                      <li><?php //echo CHtml::link("<span>Training</span>", array('episode/index')); ?></li>
                      <li><?php //echo CHtml::link("<span>Events</span>", array('episode/create')); ?></li>                                   
                    </ul>
                  </div> -->
                
                
                <!-- <li><?php //echo CHtml::link("<span>New Launches</span>", array('/site/index')); ?>
                
                <div class="columns two">
                    <ul class="one">
                      <li><?php //echo CHtml::link("<span>Products/Offers</span>", array('episode/index')); ?></li>
                      <li><?php //echo CHtml::link("<span>Stores</span>", array('episode/create')); ?></li>                                   
                    </ul>
                  </div>
                </li> -->
                
               <!-- <li><?php //echo CHtml::link("<span>Competition</span>", array('/site/index')); ?>
                
                <div class="columns two">
                    <ul class="one">
                      <li><?php //echo CHtml::link("<span>Survey</span>", array('episode/index')); ?></li>
                      <li><?php //echo CHtml::link("<span>Polls</span>", array('episode/create')); ?></li>                                   
                    </ul>
                  </div>
                </li> -->
                                							
            </div>

            <div class="clear"></div>
          </div>
          <!--  start nav -->
        </div>
        <div class="clear"></div>
        <!--  start nav-outer -->
      </div><!-- mainmenu -->
 <!--  start nav-outer-repeat................................................... END -->
      <div class="clear"></div>
      <!-- start content-outer -->
      <div id="content-outer">
        <!-- start content -->
        <div id="content">
          <!--  start page-heading -->

          <!-- end page-heading -->
          <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
            <tr>
              <th rowspan="3" class="sized"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/flowers/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
              <th class="topleft"></th>
              <td id="tbl-border-top">&nbsp;</td>
              <th class="topright"></th>
              <th rowspan="3" class="sized"><img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/flowers/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
            </tr>
            <tr>
              <td id="tbl-border-left"></td>
              <td><!--  start content-table-inner ...................................................................... START -->
                <div id="content-table-inner">
                  <!--  start table-content  -->
                  <div id="table-content"> <?php echo $content; ?> </div>
                <!--  end table-content  -->
                <div class="clear"></div>
              </div>
              <!--  end content-table-inner ............................................END  -->
            </td>
            <td id="tbl-border-right"></td>
          </tr>
          <tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
          </tr>
        </table>
        <div class="clear">&nbsp;</div>
      </div>
      <!--  end content -->
      <div class="clear">&nbsp;</div>
    </div>
    <!--  end content-outer -->
    <div class="clear">&nbsp;</div>
    <!-- start footer -->
    <div id="footer">
      <!--  start footer-left -->
      <!--<div id="footer-left"> &copy; Copyright Hungama.com .All rights reserved.</div>-->
      <div id="copyright"> &copy; Developed by Fortune4technologies.com</div>
      <!--  end footer-left -->
      <div class="clear">&nbsp;</div>
    </div>
    <!-- end footer -->
  </body>
</html>
